package com.itheima.web.controller;

import com.itheima.entity.TbSkuClass;
import com.itheima.entity.vo.PageVo;
import com.itheima.service.TbSkuClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/vm-service/skuClass")
public class TbSkuClassController {
    @Autowired
    TbSkuClassService tbSkuClassService;

    @GetMapping("search")
    public PageVo<TbSkuClass> selePage(Long pageIndex,Long pageSize,String className ) {
        return tbSkuClassService.selectPage(pageIndex,pageSize,className);
    }
}
